package com.young.springdemo.utils;

public class Students {
    private String name;
    private String label;
    private Double salary;
    private String time;
    private Teacher teacher;


    public Students() {
    }

    public Students(String name, String label, Double salary, String time, Teacher teacher) {
        this.name = name;
        this.label = label;
        this.salary = salary;
        this.time = time;
        this.teacher = teacher;
    }

    public Students(String name, String label, Double salary, String time) {
        this.name = name;
        this.label = label;
        this.salary = salary;
        this.time = time;
    }

    @Override
    public String toString() {
        return "Students{" +
                "name='" + name + '\'' +
                ", label='" + label + '\'' +
                ", salary=" + salary +
                ", time='" + time + '\'' +
                ", teacher=" + teacher +
                '}';
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
